<template>
  <div class="CardContainer">
    <!-- 头部信息 -->
    <div class="CardContainer-header">
      <div class="CardContainer-header-left">
        <img src="@/assets/healthMonitorAssets/img/card.png" alt />
        <H4>{{headerName}}</H4>
      </div>
      <div class="CardContainer-header-right">
        <slot name="header-right"></slot>
      </div>
    </div>
    <!-- 中间内容 -->
      <slot name="card-content"></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: "",
    };
  },
  components: {},
  props: {
    headerName: String,
  },
};
</script>

<style lang="scss" scoped>
.CardContainer {
  width: 100%;
  min-height: 100%;
  height: auto;
  background: #ffff;
  padding: 20px 20px;
  border-radius: 3px;
  .CardContainer-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #c6d3e1;
    height: 35px;
    line-height: 35px;
    .CardContainer-header-left {
      display: flex;
      justify-content: start;
      img {
        width: 16px;
        height: 16px;
        position: relative;
        top: 3px;
      }
      h4 {
        font-size: 18px;
        font-weight: 500;
        color: #327bdc;
        margin-left: 4px;
      }
    }
    .CardContainer-header-right{
      position: relative;
      top:-8px;
    }
  }
}
</style>
